package think_oberver;

import java.util.Observable;

public class Observer implements java.util.Observer {

	@Override
	public void update(Observable o, Object arg) {
		System.out.println(((Frame)o).getName()+name);
	}
	
	private String name;
	public Observer(String name) {
		this.name=name;
	}

}
